﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>投诉举报查询</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no, maximum-scale=1.0" />
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/css/index.css" />
    <link href="/css/jquery.dialogbox.css" rel="stylesheet" />
</head>
<body>
    <div class="container">
        <div class="header">
            <div class="headbg"><a href="/index.html" class="return"></a></div>
            <p>投诉举报查询</p>
        </div>
        <main>
            <div class="am-container">
                <input type="hidden" id="Unid">
                <div class="am-form-group">
                    <input type="text" class="" id="SearchCode" placeholder="输入完整编号查询投诉举报信息">
                </div>
                <div class="am-form-group">
                    <button onclick="SearchSub()" class="am-btn am-btn-block am-btn-primary">查询</button>
                </div>
            </div>
        </main>
    </div>
</body>
</html>

<script type="text/javascript" src="/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="/lib/layer/2.1/layer.js"></script>
<script type="text/javascript" src="/lib/laypage/1.2/laypage.js"></script>
<script type="text/javascript" src="/lib/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="/static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="/static/h-ui.admin/js/H-ui.admin.js"></script>
<script src="/static/usi/core.js"></script>
<script src="/static/usi/tools.js"></script>
<script>

    //提交查询
    function SearchSub() {
        var searchCode = $("#SearchCode").val();
        if (jQuery.usi.core.isNullOrEmpty(searchCode)) {
            layer.alert("查询编号不能为空");
            return;
        }
        jQuery.usi.core.get(ip + api + "/GetComplaintHandlingData", { code: searchCode }, false, function (data) {
            if (data.data!=null){
                if (!jQuery.usi.core.isNullOrEmpty(data.data.handleName))
                    window.location.href = "/page/ComplaintHandlingDetail.html?Code=" + escape(searchCode);
                else 
                    layer.alert("该投诉举报信息还未处理完");
            }
            
        }, function (resultdata) {
            layer.alert("查询不到信息");
        });
    }

</script>
